package annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 
 * 
 * @author Michael Liao (askxuefeng@gmail.com)
 */

/**
 * Record parameter's name in order to init argument by httprequest's parameter.<br/>
 * For example:<br/>
 * <pre>
 * public class Blog {
 *     &#064;Mapping("/")
 *     public String index(&#064;Param("user")User u) {
 *         // handle index page...
 *     }
 * }
 * </pre>
 * 
 * @author LW
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface Param {
    String value();
}
